package com.lgqz.topsports.util;

import com.lgqz.topsports.bean.CommentEntity;
import com.lgqz.topsports.bean.NewContentEntity;
import com.lgqz.topsports.bean.MatchDataEntity;
import com.lgqz.topsports.bean.MatchEntity;
import com.lgqz.topsports.bean.NewEntity;
import com.lgqz.topsports.bean.RecommendReadEntity;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Description:
 * Copyright(c) 2016,邱国兴
 * This Program is protected by copyright laws
 * Created by Little Monster on 2016/12/16.
 *
 * @author 邱国兴
 */

public interface HttpService {
    //    ?channel_id=1&data_version=216.9&banner_flag=true&
    // machine_code=865682026799303&client=key%3ATiyuForAndroid
    // &version=2.11&format=json&app_id=4&is_emulator=false
    @GET("tiyu/rest/content/list")
    Call<NewEntity> getClasfication(@Query("channel_id") int channel_id, @Query("data_version") String data_version,
                                    @Query("banner_flag") boolean banner_flag, @Query("machine_code") String
                                            machine_code, @Query("client") String client, @Query("version") String
                                            version, @Query("format") String format, @Query("is_emulator") boolean
                                            is_emulator);

    // ?channel_id=0&start_id=196271&data_version=500.3&
    // banner_flag=true&machine_code=864394010202606&client=key%3ATiyuForAndroid&
    // version=2.11&format=json&app_id=4&is_emulator=false
    @GET("tiyu/rest/content/list")
    Call<NewEntity> getLoadMoreData(@Query("channel_id") int channel_id, @Query("start_id") long start_id, @Query("data_version") String data_version,
                                    @Query("banner_flag") boolean banner_flag, @Query("machine_code") String
                                            machine_code, @Query("client") String client, @Query("version") String
                                            version, @Query("format") String format, @Query("is_emulator") boolean
                                            is_emulator);

    @GET("tiyu/rest/contest/time/channel")
    Call<MatchDataEntity<MatchEntity>> getMatch(@Query("start_time") String start, @Query("end_time") String end);

    @GET("tiyu/rest/content/view")
    Call<NewContentEntity> getContent(@Query("id") long id);

    @GET("tiyu/rest/content/recommend")
    Call<RecommendReadEntity> getRecommendReadData(@Query("id") long id);

    @GET("tiyu/rest/comment/list")
    Call<CommentEntity> getCommentData(@Query("dashboard_id") long dashboard_id);

}
